package com.example.candiates.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.candiates.domain.Candidate;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import java.util.List;

@Mapper
public interface CandidateMapper extends BaseMapper<Candidate> {
    
    /**
     * 根据手机号查询候选人
     * @param phone 手机号
     * @return 候选人信息
     */
    @Select("SELECT * FROM interview_candidates WHERE phone = #{phone} LIMIT 1")
    Candidate selectByPhone(String phone);
} 